package sicnu.cs.ich.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import sicnu.cs.ich.api.domain.entity.ActivityTimeline;

import java.util.List;

/**
 * @author 黎琦
 * @date 2021/12/8 1:26
 **/
@Mapper
public interface ActivityTimelineMapper extends BaseMapper<ActivityTimeline> {
    /**
     * 批量插入时间线
     *
     * @param timelines
     */
    public void insertAll(@Param("list") List<ActivityTimeline> timelines);

    /**
     * 删除该活动的所有时间线
     * @param aid
     */
    public void deleteByAid(Integer aid);

}
